//
//  UIImage+Extension.h
//  Mia
//
//  Created by Vill on 2024/1/30.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (Extension)

- (UIImage *)ResizeScale:(CGFloat)scale;

// 压缩图片到指定大小
+ (UIImage *)compressImage:(UIImage *)image toMaxFileSize:(NSInteger)maxFileSize;

// 获取图片文件大小（以MB为单位）
+ (CGFloat)getImageFileSizeInMB:(UIImage *)image;

@end

NS_ASSUME_NONNULL_END
